package com.ccit.common.fallback;

import com.ccit.common.client.GoodsClient;
import com.ccit.common.result.Result;
import com.ccit.model.Goods;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

@Component
public class GoodsClientFallback implements GoodsClient {
    @Override
    public Boolean updateGoods(Goods goods) {
        System.out.println("调用消息接口失败，对其进行降级处理！");
        return null;
    }

    @Override
    public Goods getGoodsById(Long id) {
        System.out.println("调用消息接口失败，对其进行降级处理！");
        return null;
    }

    @Override
    public Goods getGoodsByName(String name) {
        System.out.println("调用消息接口失败，对其进行降级处理！");
        return null;
    }
}
